package com.agriculture.service;

import com.agriculture.domain.Product;
import java.util.List;

public interface ProductService {
    Product getProductById(Long id);
    List<Product> findByCategory(String category);
    List<Product> findByOwner(Long ownerId, String ownerType);
    Product createProduct(Product product);
    void updateStatus(Long productId, String status);
    boolean updateStock(Long productId, Integer amount);
    List<Product> searchProducts(String keyword, String category);
    List<Product> getProductsByPage(Long ownerId, 
                                  String ownerType, 
                                  String keyword, 
                                  String category, 
                                  Integer offset, 
                                  Integer pageSize);
    int getProductsCount(Long ownerId, 
                        String ownerType, 
                        String keyword, 
                        String category);
    Product updateProduct(Long productId, Product product);
    void deleteProduct(Long productId);
} 